<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>邮箱验证码</title>
    <style>
        body {
            font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f5f7fa;
            color: #333;
        }
        .container {
            max-width: 600px;
            margin: 0 auto;
            padding: 20px;
        }
        .email-content {
            background-color: #ffffff;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
            padding: 40px;
        }
        .header {
            text-align: center;
            margin-bottom: 30px;
        }
        .logo {
            font-size: 24px;
            font-weight: bold;
            color: #2c3e50;
            margin-bottom: 10px;
        }
        .title {
            font-size: 22px;
            color: #2c3e50;
            margin-bottom: 20px;
        }
        .verification-code {
            background-color: #f8f9fa;
            border-radius: 4px;
            font-size: 32px;
            font-weight: bold;
            text-align: center;
            padding: 15px 0;
            margin: 30px 0;
            letter-spacing: 5px;
            color: #2c3e50;
        }
        .info {
            line-height: 1.6;
            margin-bottom: 20px;
            color: #666;
        }
        .note {
            background-color: #f8f9fa;
            padding: 15px;
            border-radius: 4px;
            font-size: 14px;
            color: #7f8c8d;
            margin-top: 30px;
        }
        .footer {
            text-align: center;
            margin-top: 40px;
            font-size: 12px;
            color: #999;
        }
        @media (max-width: 600px) {
            .email-content {
                padding: 20px;
            }
            .verification-code {
                font-size: 24px;
                padding: 10px 0;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="email-content">
            <div class="header">
                <div class="logo">您的品牌名称</div>
                <div style="color: #7f8c8d; font-size: 14px;">安全验证</div>
            </div>
            
            <h2 class="title">邮箱验证码</h2>
            
            <p class="info">您好，</p>
            
            <p class="info">您正在进行邮箱验证操作，您的验证码是：</p>
            
            <div class="verification-code"><strong th:text="${code}"></strong></div>
            
            <p class="info">该验证码有效期为<span th:text="${expiration}">5</span>分钟，请在有效期内完成验证。</p>
            
            <p class="info">如果您没有进行相关操作，请忽略此邮件，您的账户安全不会受到影响。</p>
            
            <div class="note">
                <p>注意：此邮件为系统自动发送，请勿直接回复。如有疑问，请联系客服。</p>
            </div>
        </div>
        
        <div class="footer">
            <p>© 2023 您的品牌名称 版权所有</p>
        </div>
    </div>
</body>
</html>
